package 位运算;

public class 只出现一次的数字4 {
    //https://leetcode.cn/problems/single-number/description/
    public int singleNumber(int[] nums) {
        int ret = 0;
        for (int i : nums) {
            ret ^= i;
        }
        return ret;
    }
}
